#ifndef _BB_SPI_#define _BB_SPI_#include "spi.h"#include "bb_types.h"#define     BB_SPI_BASE_IDX     (SPI_7)#define     BB_SPI_MAX_DELAY    (2000)int BB_SPI_init(void);int BB_SPI_curPageWriteByte(uint8_t addr, uint8_t data);uint8_t BB_SPI_curPageReadByte(uint8_t addr);int BB_SPI_WriteByte(ENUM_REG_PAGES page, uint8_t addr, uint8_t data);uint8_t BB_SPI_ReadByte(ENUM_REG_PAGES page, uint8_t addr);int BB_SPI_WriteByteMask(ENUM_REG_PAGES page, uint8_t addr, uint8_t data, uint8_t mask);int BB_SPI_ReadByteMask(ENUM_REG_PAGES page, uint8_t addr, uint8_t mask);void BB_SPI_DisableEnable(uint8_t u8_flag);#endif